﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <a href="@Url.Action("Index", "Home")">Index</a>
    <a href="@Url.Action("Form", "Home")">Form</a>
    <br />
    <br />
    <div class="currentData">
        <span>BetterTempData Item Count:&nbsp;</span>@(Better.TempData.Collection.Count)
        <br />
        <span>1:&nbsp;</span>@(Better.TempData.Collection["String1"] != null ? (string)Better.TempData.Collection["String1"] : "")
        <br />
        <span>2:&nbsp;</span>Not available to give this sample its purpose. #2 will still be removed even when it's not read.
        <br />
        <span>3:&nbsp;</span>@(Better.TempData.Collection["String3"] != null ? (string)Better.TempData.Collection["String3"] : "") - Kept indefinitely due to Keep()
    </div>
</body>
</html>
